package com.ruoyi.system.service;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.ruoyi.system.domain.SysUserBillcash;
import com.ruoyi.system.vo.OrderStatisticsRes;
import com.ruoyi.system.vo.req.SysOrderReq;

/**
 * 用户资金流水记录Service接口
 *
 * @author Ericcc
 * @date 2021-03-11
 */
public interface ISysUserBillcashService
{
    /**
     * 查询用户资金流水记录
     *
     * @param billcashId 用户资金流水记录ID
     * @return 用户资金流水记录
     */
    public SysUserBillcash selectSysUserBillcashById(Long billcashId);

    /**
     * 查询用户资金流水记录列表
     *
     * @param sysUserBillcash 用户资金流水记录
     * @return 用户资金流水记录集合
     */
    public List<SysUserBillcash> selectSysUserBillcashList(SysUserBillcash sysUserBillcash);

    /**
     * 新增用户资金流水记录
     *
     * @param sysUserBillcash 用户资金流水记录
     * @return 结果
     */
    public int insertSysUserBillcash(SysUserBillcash sysUserBillcash);

    /**
     * 修改用户资金流水记录
     *
     * @param sysUserBillcash 用户资金流水记录
     * @return 结果
     */
    public int updateSysUserBillcash(SysUserBillcash sysUserBillcash);

    /**
     * 批量删除用户资金流水记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysUserBillcashByIds(String ids);

    /**
     * 删除用户资金流水记录信息
     *
     * @param billcashId 用户资金流水记录ID
     * @return 结果
     */
    public int deleteSysUserBillcashById(Long billcashId);

    /**
     * 查询条件和时间查询代理佣金统计
     *
     * @param sysOrder 订单
     * @return 代理佣金统计
     */
    public BigDecimal selectSysUserBillcashStatistics(SysOrderReq sysOrder, Date beginTime);

    /**
     * 查询代理及佣金记录统计
     * @param sysOrder
     * @param beginTime
     * @return
     */
    BigDecimal selectSysAgentBillcashStatistics(SysOrderReq sysOrder, Date beginTime);

    /**
     * 查询代理 及下级资金流水记录
     * @param sysUserBillcash
     * @return
     */
    List<SysUserBillcash> selectSysAgentUserBillcashList(SysUserBillcash sysUserBillcash);

    /**
     * 查询高级代理 及下级资金流水记录
     * @param sysUserBillcash
     * @return
     */
    List<SysUserBillcash> selectSysHighAgentUserBillcashList(SysUserBillcash sysUserBillcash);
}
